
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

project(signal LANGUAGES C)

include_directories(../common)

set(COMPILE_ALL OFF)

list(APPEND _sources
    ../common/error.c
    ../common/prexit.c
    ../common/lockfile.c
    01_init.c
    02_single.c
    ../common/setfd.c
)

if (COMPILE_ALL)
add_executable(reread 03_reread.c ${_sources})
else()
add_executable(reread2 04_reread2.c ${_sources})
endif()
